package com.miaoxie.dao;

import com.miaoxie.domain.MyEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: miaoxie
 * Date: 2018-05-16
 * Time: 上午9:29
 */
@NoRepositoryBean
public interface BaseDao<T,P>
        extends
        JpaRepository<T,P>
        ,JpaSpecificationExecutor<T> {

    @Override
    <S extends T> S save(S s);
}
